//
import { request } from "@/utils/request";
// 网段名称列表查询
export function getIpManagetList(params) {
  return request({
    url: "/ipManagement/getIpManagementLIst",
    method: "GET",
    params,
  });
}
// ip地址列表(列表模式)
export function ipViewList(params) {
  return request({
    url: "/ipManagement/ipViewList",
    method: "GET",
    params,
  });
}
// ip地址列表(视图模式)
export function ipViewManage(params) {
  return request({
    url: "/ipManagement/ipViewManage",
    method: "GET",
    params,
  });
}
// ip待分配和已分配和全部的数量
export function ipAllocationNum(params) {
  return request({
    url: "/ipManagement/ipAllocationNum",
    method: "GET",
    params,
  });
}
//ip地址分配---列表
export function ipAllocationList(params) {
  return request({
    url: "/ipManagement/ipAllocationList",
    method: "GET",
    params,
  });
}
// ip地址详情---详情(卡片信息
export function ipHistoryDetail(params) {
  return request({
    url: "/ipManagement/ipHistoryDetail",
    method: "GET",
    params,
  });
}
// ip待分配资产列表
export function ipAllotList(params) {
  return request({
    url: "/ipManagement/ipAllotList",
    method: "GET",
    params,
  });
}
// ip分配
export function canSelectIpList(params) {
  return request({
    url: "/ipManagement/canSelectIpList",
    method: "GET",
    params,
  });
}

// ip分配
export function ipSetting(data) {
  return request({
    url: "/ipManagement/ipSetting",
    method: "POST",
    data,
    type: 2,
  });
}

// ip分配确认
export function ipConform(data) {
  return request({
    url: "/ipManagement/ipConform",
    method: "POST",
    data,
    type: 2,
  });
}
// 创建ip地址规划
export function createIpPlan(data) {
  return request({
    url: "/ipManagement/createIpManagement",
    method: "POST",
    data,
    type: 2,
  });
}
// 删除ip地址规划
export function deleteIpPlan(data) {
  return request({
    url: "/ipManagement/deleteIpManagement",
    method: "POST",
    data,
    type: 2,
  });
}
// 编辑ip地址规划
export function updateIpPlan(data) {
  return request({
    url: "/ipManagement/updateIpManagement",
    method: "POST",
    data,
    type: 2,
  });
}

export function canSelectIpNetWork(params) {
  return request({
    url: "/ipManagement/canSelectIpNetWork",
    method: "GET",
    params,
  });
}


